import React, {Component} from 'react';
import TabBar from "./TabBar";
import {Route,Redirect} from 'react-router-dom'
import HouseList from "../HouseList/HouseList";
import Index from "../Index/Index";
import News from "../News/News";
import ProFile from "../Profile/ProFile";
class Home extends Component {
    render() {
        return (
            <div>
                    <Route path='/home/index' component={Index}/>
                    <Route path='/home/homelist' component={HouseList}/>
                    <Route path='/home/news' component={News}/>
                    <Route path='/home/profile' component={ProFile}/>
                    <Redirect to='/home/index'/>  {/*重定向*/}
                    <TabBar/>
            </div>
        );
    }
}

export default Home;
